﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="Deepcode.QueryPatterns.Redux.Domain" assembly="Deepcode.QueryPatterns.Redux">

	<class name="Order" table="SalesOrderHeader" schema="sales">

		<id name="Id">
			<column name="SalesOrderId" sql-type="int" not-null="true"/>
			<generator class="identity"/>
		</id>

		<property name="Total" column="TotalDue"/>
		<many-to-one name="Customer" class="Customer" column="CustomerId"/>

	</class>

</hibernate-mapping>
